-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(fabric.Path): setting path
during runtime
#7141
Conversation
Path#path
during runtimepath
during runtime
@@ -66,7 +73,19 @@ | |||
if (!this.path) { | |||
return; | |||
} | |||
fabric.Polyline.prototype._setPositionDimensions.call(this, options); | |||
fabric.Polyline.prototype._setPositionDimensions.call(this, options || {}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you want to extract _setPositionDimensions
from Polyline?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@asturur merge? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
stale bot 😠 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@asturur ? |
Ok i finally found the time to come back here. A fabric.Path is defined by its own path data, and updating it is not so much common. If you want we can merge this PR removing the changes to _set/set, and is good to go. Changing a path data with something entirely different does not make sense and we can't really fix that. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Done |
i will add the changePath method with the optional anchor point |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
not stale |
i forgot to merge this? |
now i have as a task to write the function that call _setPath but also keep the position steady. |
This PR with #7140 finalizes the replacement of #7082
Apparently calling
setCoords
was redundant.Everything looks good